package com.longfor.dragonshard.common.util;

import com.longfor.dragonshard.common.constant.ConfigConstants;
import com.longfor.drogon.common.encrypt.LFEncrypt;
import com.longfor.drogon.common.util.LFDefaultKeyGenerator;
import org.apache.commons.codec.binary.Hex;

/**
 * 系统公用方法
 *
 * @author chi.zhang
 * @create 2017/12/6 下午4:06
 *
 * @version v1.0
 **/
public class CommonUtils {

    public static String getValidateKey(){
        LFDefaultKeyGenerator defaultKeyGenerator = new LFDefaultKeyGenerator();
        return "VALIDATE_KEY" + ConfigConstants.CACHE_SPLIT_KEY + defaultKeyGenerator.generateKey();
    }

    public static void main(String[] args){
    }

}
